<div id="divMain"><input id="duongdan" type="hidden" value="<?=base_url('untitled/getDDL/idCL/insert/')?>" /><input id="duongdans" type="hidden" value="<?=base_url('untitled/getDDL/idLP/')?>" /><input type="hidden" id="idCL_hidden" value="" /><input type="hidden" id="idLP_hidden" value="" />
	<?=form_open(base_url("untitled/sanpham/them.html"))?>
	<table align="center" class="tblInsert">
    	<tr>
        	<td>Chủng loại:<?=form_error('idCL')?></td>
            <td style="text-align:left">
            	<select id="idCL" name="idCL">
                <?php foreach($resultDDL as $items) { ?><option value="<?=$items->id?>"><?=$items->ten?></option><?php } ?>
                </select>
            </td>
        </tr>
    	<tr>
        	<td>Loại phòng:<?=form_error('idLP')?></td>
            <td style="text-align:left">
            	<select id="idLP" name="idLP"></select>
            </td>
        </tr>
    	<tr>
        	<td>Loại sản phẩm:<?=form_error('idL')?></td>
            <td style="text-align:left">
            	<select id="idL" name="idL"></select>
            </td>
        </tr>
    	<tr>
        	<td>Nổi bật:<?=form_error('noibat')?></td>
            <td style="text-align:left"><select name="noibat"><option value="1">Có</option><option value="0">Không</option></select></td>
        </tr>
    	<tr>
        	<td>Tên:<?=form_error('ten')?></td>
            <td style="text-align:left"><input type="text" name="ten" value="<?=set_value('ten')?>" /></td>
        </tr>
        <tr>
        	<td>Giá:<?=form_error('gia')?></td>
            <td style="text-align:left"><input type="text" name="gia" value="<?=set_value('gia')?>" /></td>
        </tr>
    	<tr>
        	<td>Thứ tự:<?=form_error('thutu')?></td>
            <td style="text-align:left"><input type="text" name="thutu" value="<?=set_value('thutu')?>" /></td>
        </tr>
        <tr>
        	<td valign="top">Nội dung:<?=form_error('noidung')?></td>
            <td style="text-align:left"><?php $arr = array('value'=>set_value('noidung')); $this->editor->create($arr);?></td>
        </tr>
        <tr>
        	<td colspan="2"><?=form_submit("btnSubmit","Thêm")?></td>
        </tr>
    </table>
    <?=form_close()?>
</div>